package cn.wolfcode.crm.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
public class Role extends BaseDomain{

    private static final long serialVersionUID = 1L;

	private String name;

    private String sn;

    //维护与权限的多对多关系,
    //注意springmvc封装list集合/数组数据时,使用下面格式
    //permissions[0].id
    //permissions[1].name
    private List<Permission> permissions = new ArrayList<>();

}